package com.dragon.modules.yuegou.model.wallet;

import com.dragon.modules.yuegou.entity.wallet.CardGrantEntity;
import com.dragon.modules.yuegou.enums.CardForm;
import com.dragon.modules.yuegou.enums.CardType;
import com.dragon.modules.yuegou.enums.wallet.CardGrantCheckStatus;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 悦卡发放记录（企业向会员发放悦卡）模型类
 * 
 * @author pbuilder generated
 * @date 2019-04-12 10:44:43
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class CardGrant extends CardGrantEntity {

	@ApiModelProperty("申请人名称")
	private String createdName;

	@ApiModelProperty("审核人名称")
	private String checkName;

	@ApiModelProperty("员工手机号")
	private String mobile;

	@ApiModelProperty("员工姓名")
	private String employeName;

	@ApiModelProperty("悦卡类型：0-福利卡-WELFARE_CARD、1-预付卡-PREPAY_CARD")
	private CardType cardType;

	@ApiModelProperty("悦卡形式：0-虚拟卡-VIRTUAL_CARD、1-实体卡-ENTITY_CARD")
	private CardForm cardForm;

	public CardType getCardType() {
		return cardType;
	}

	public void setCardType(CardType cardType) {
		this.cardType = cardType;
	}

	public CardForm getCardForm() {
		return cardForm;
	}

	public void setCardForm(CardForm cardForm) {
		this.cardForm = cardForm;
	}

	@ApiModelProperty("发放详情")
	private List<MemberCardGrant> grantList;

	public List<MemberCardGrant> getGrantList() {
		return grantList;
	}

	public void setGrantList(List<MemberCardGrant> grantList) {
		this.grantList = grantList;
	}

	public String getCreatedName() {
		return createdName;
	}

	public void setCreatedName(String createdName) {
		this.createdName = createdName;
	}

	public String getCheckName() {
		return checkName;
	}

	public void setCheckName(String checkName) {
		this.checkName = checkName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmployeName() {
		return employeName;
	}

	public void setEmployeName(String employeName) {
		this.employeName = employeName;
	}


	/**
	 * 构造一个空悦卡发放记录（企业向会员发放悦卡）模型对象
	 */
	public CardGrant(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个悦卡发放记录（企业向会员发放悦卡）模型对象
	 * 
	 * @param entity 实体对象
	 */
	public CardGrant(CardGrantEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个悦卡发放记录（企业向会员发放悦卡）模型对象
	 * 
	 * @param other 其它对象
	 */
	public CardGrant(CardGrant other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置悦卡发放记录ID
	 * 
	 * @param id 悦卡发放记录ID
	 * @return 当前对象
	 */
    public CardGrant id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getCardTemplateId() {
    	return cardTemplateId;
    }

    /**
	 * 设置悦卡id
	 * 
	 * @param cardTemplateId 悦卡id
	 * @return 当前对象
	 */
    public CardGrant cardTemplateId(String cardTemplateId) {
    	this.cardTemplateId = cardTemplateId;
    	return this;
    }

	@Override
	public String getCardTemplateTitle() {
    	return cardTemplateTitle;
    }

    /**
	 * 设置悦卡名称
	 * 
	 * @param cardTemplateTitle 悦卡名称
	 * @return 当前对象
	 */
    public CardGrant cardTemplateTitle(String cardTemplateTitle) {
    	this.cardTemplateTitle = cardTemplateTitle;
    	return this;
    }

	@Override
	public String getCompanyId() {
    	return companyId;
    }

    /**
	 * 设置企业ID
	 * 
	 * @param companyId 企业ID
	 * @return 当前对象
	 */
    public CardGrant companyId(String companyId) {
    	this.companyId = companyId;
    	return this;
    }

	@Override
	public String getCompanyName() {
    	return companyName;
    }

    /**
	 * 设置企业名称
	 * 
	 * @param companyName 企业名称
	 * @return 当前对象
	 */
    public CardGrant companyName(String companyName) {
    	this.companyName = companyName;
    	return this;
    }

	@Override
	public Integer getTotalNum() {
    	return totalNum;
    }

    /**
	 * 设置发放人数
	 * 
	 * @param totalNum 发放人数
	 * @return 当前对象
	 */
    public CardGrant totalNum(Integer totalNum) {
    	this.totalNum = totalNum;
    	return this;
    }

	@Override
	public BigDecimal getTotalAmount() {
    	return totalAmount;
    }

    /**
	 * 设置发放总额
	 * 
	 * @param totalAmount 发放总额
	 * @return 当前对象
	 */
    public CardGrant totalAmount(BigDecimal totalAmount) {
    	this.totalAmount = totalAmount;
    	return this;
    }

	@Override
	public String getRemarks() {
    	return remarks;
    }

    /**
	 * 设置备注
	 * 
	 * @param remarks 备注
	 * @return 当前对象
	 */
    public CardGrant remarks(String remarks) {
    	this.remarks = remarks;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人
	 * 
	 * @param createdBy 创建人
	 * @return 当前对象
	 */
    public CardGrant createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public CardGrant createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCheckBy() {
    	return checkBy;
    }

    /**
	 * 设置审核人
	 * 
	 * @param checkBy 审核人
	 * @return 当前对象
	 */
    public CardGrant checkBy(String checkBy) {
    	this.checkBy = checkBy;
    	return this;
    }

	@Override
	public LocalDateTime getCheckTime() {
    	return checkTime;
    }

    /**
	 * 设置审核时间
	 * 
	 * @param checkTime 审核时间
	 * @return 当前对象
	 */
    public CardGrant checkTime(LocalDateTime checkTime) {
    	this.checkTime = checkTime;
    	return this;
    }

	@Override
	public CardGrantCheckStatus getCheckStatus() {
    	return checkStatus;
    }

    /**
	 * 设置[枚举]状态：0-未审核-UNCHECKED、1-审核通过-PASSED、2-审核不通过-UNPASSED
	 * 
	 * @param checkStatus [枚举]状态：0-未审核-UNCHECKED、1-审核通过-PASSED、2-审核不通过-UNPASSED
	 * @return 当前对象
	 */
    public CardGrant checkStatus(CardGrantCheckStatus checkStatus) {
    	this.checkStatus = checkStatus;
    	return this;
    }

	@Override
	public String getCheckRemark() {
    	return checkRemark;
    }

    /**
	 * 设置审核说明
	 * 
	 * @param checkRemark 审核说明
	 * @return 当前对象
	 */
    public CardGrant checkRemark(String checkRemark) {
    	this.checkRemark = checkRemark;
    	return this;
    }
}
